package com.pxc.fbbf;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * Description:
 *
 * @author pxc
 * Date: 2020-05-16
 * Time: 12:07
 */
@Component
public class DaoFactoryBean implements FactoryBean {
    public void testBean(){
        System.out.println("testBean");
    }

    @Override
    public Object getObject() throws Exception {
        return new TempDaoFactoryBean();
    }

    @Override
    public Class<?> getObjectType() {
        return  TempDaoFactoryBean.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
